3.227 \(\int \sqrt{\sec (c+d x)} (a+a \sec (c+d x))^{3/2} \, dx\)

Optimal. Leaf size=75 \[ \frac{a^2 \sin (c+d x) \sec ^{\frac{3}{2}}(c+d x)}{d \sqrt{a \sec (c+d x)+a}}+\frac{3 a^{3/2} \sinh ^{-1}\left (\frac{\sqrt{a} \tan (c+d x)}{\sqrt{a \sec (c+d x)+a}}\right )}{d} \]

[Out]

(3*a^(3/2)*ArcSinh[(Sqrt[a]*Tan[c + d*x])/Sqrt[a + a*Sec[c + d*x]]])/d + (a^2*Sec[c + d*x]^(3/2)*Sin[c + d*x])
/(d*Sqrt[a + a*Sec[c + d*x]])

________________________________________________________________________________________

Rubi [A]  time = 0.117463, antiderivative size = 75, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.16, Rules used = {3814, 21, 3801, 215} \[ \frac{a^2 \sin (c+d x) \sec ^{\frac{3}{2}}(c+d x)}{d \sqrt{a \sec (c+d x)+a}}+\frac{3 a^{3/2} \sinh ^{-1}\left (\frac{\sqrt{a} \tan (c+d x)}{\sqrt{a \sec (c+d x)+a}}\right )}{d} \]

Antiderivative was successfully verified.

[In]

Int[Sqrt[Sec[c + d*x]]*(a + a*Sec[c + d*x])^(3/2),x]

[Out]

(3*a^(3/2)*ArcSinh[(Sqrt[a]*Tan[c + d*x])/Sqrt[a + a*Sec[c + d*x]]])/d + (a^2*Sec[c + d*x]^(3/2)*Sin[c + d*x])
/(d*Sqrt[a + a*Sec[c + d*x]])

Rule 3814

Int[(csc[(e_.) + (f_.)*(x_)]*(d_.))^(n_)*(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_), x_Symbol] :> -Simp[(b^2*
Cot[e + f*x]*(a + b*Csc[e + f*x])^(m - 2)*(d*Csc[e + f*x])^n)/(f*(m + n - 1)), x] + Dist[b/(m + n - 1), Int[(a
 + b*Csc[e + f*x])^(m - 2)*(d*Csc[e + f*x])^n*(b*(m + 2*n - 1) + a*(3*m + 2*n - 4)*Csc[e + f*x]), x], x] /; Fr
eeQ[{a, b, d, e, f, n}, x] && EqQ[a^2 - b^2, 0] && GtQ[m, 1] && NeQ[m + n - 1, 0] && IntegerQ[2*m]

Rule 21

Int[(u_.)*((a_) + (b_.)*(v_))^(m_.)*((c_) + (d_.)*(v_))^(n_.), x_Symbol] :> Dist[(b/d)^m, Int[u*(c + d*v)^(m +
 n), x], x] /; FreeQ[{a, b, c, d, n}, x] && EqQ[b*c - a*d, 0] && IntegerQ[m] && ( !IntegerQ[n] || SimplerQ[c +
 d*x, a + b*x])

Rule 3801

Int[Sqrt[csc[(e_.) + (f_.)*(x_)]*(d_.)]*Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Dist[(-2*a*Sq
rt[(a*d)/b])/(b*f), Subst[Int[1/Sqrt[1 + x^2/a], x], x, (b*Cot[e + f*x])/Sqrt[a + b*Csc[e + f*x]]], x] /; Free
Q[{a, b, d, e, f}, x] && EqQ[a^2 - b^2, 0] && GtQ[(a*d)/b, 0]

Rule 215

Int[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Simp[ArcSinh[(Rt[b, 2]*x)/Sqrt[a]]/Rt[b, 2], x] /; FreeQ[{a, b},
 x] && GtQ[a, 0] && PosQ[b]

Rubi steps

\begin{align*} \int \sqrt{\sec (c+d x)} (a+a \sec (c+d x))^{3/2} \, dx &=\frac{a^2 \sec ^{\frac{3}{2}}(c+d x) \sin (c+d x)}{d \sqrt{a+a \sec (c+d x)}}+a \int \frac{\sqrt{\sec (c+d x)} \left (\frac{3 a}{2}+\frac{3}{2} a \sec (c+d x)\right )}{\sqrt{a+a \sec (c+d x)}} \, dx\\ &=\frac{a^2 \sec ^{\frac{3}{2}}(c+d x) \sin (c+d x)}{d \sqrt{a+a \sec (c+d x)}}+\frac{1}{2} (3 a) \int \sqrt{\sec (c+d x)} \sqrt{a+a \sec (c+d x)} \, dx\\ &=\frac{a^2 \sec ^{\frac{3}{2}}(c+d x) \sin (c+d x)}{d \sqrt{a+a \sec (c+d x)}}-\frac{(3 a) \operatorname{Subst}\left (\int \frac{1}{\sqrt{1+\frac{x^2}{a}}} \, dx,x,-\frac{a \tan (c+d x)}{\sqrt{a+a \sec (c+d x)}}\right )}{d}\\ &=\frac{3 a^{3/2} \sinh ^{-1}\left (\frac{\sqrt{a} \tan (c+d x)}{\sqrt{a+a \sec (c+d x)}}\right )}{d}+\frac{a^2 \sec ^{\frac{3}{2}}(c+d x) \sin (c+d x)}{d \sqrt{a+a \sec (c+d x)}}\\ \end{align*}

Mathematica [A]  time = 0.263817, size = 75, normalized size = 1. \[ \frac{a^2 \tan (c+d x) \left (\sqrt{-(\sec (c+d x)-1) \sec (c+d x)}-3 \sin ^{-1}\left (\sqrt{\sec (c+d x)}\right )\right )}{d \sqrt{1-\sec (c+d x)} \sqrt{a (\sec (c+d x)+1)}} \]

Warning: Unable to verify antiderivative.

[In]

Integrate[Sqrt[Sec[c + d*x]]*(a + a*Sec[c + d*x])^(3/2),x]

[Out]

(a^2*(-3*ArcSin[Sqrt[Sec[c + d*x]]] + Sqrt[-((-1 + Sec[c + d*x])*Sec[c + d*x])])*Tan[c + d*x])/(d*Sqrt[1 - Sec
[c + d*x]]*Sqrt[a*(1 + Sec[c + d*x])])

________________________________________________________________________________________

Maple [B]  time = 0.211, size = 184, normalized size = 2.5 \begin{align*}{\frac{a \left ( \left ( \cos \left ( dx+c \right ) \right ) ^{2}-1 \right ) }{4\,d \left ( \sin \left ( dx+c \right ) \right ) ^{2}}\sqrt{ \left ( \cos \left ( dx+c \right ) \right ) ^{-1}}\sqrt{{\frac{a \left ( \cos \left ( dx+c \right ) +1 \right ) }{\cos \left ( dx+c \right ) }}} \left ( 3\,\arctan \left ( 1/4\,\sqrt{2}\sqrt{-2\, \left ( \cos \left ( dx+c \right ) +1 \right ) ^{-1}} \left ( \cos \left ( dx+c \right ) +1+\sin \left ( dx+c \right ) \right ) \right ) \sqrt{2}\cos \left ( dx+c \right ) -3\,\arctan \left ( 1/4\,\sqrt{2}\sqrt{-2\, \left ( \cos \left ( dx+c \right ) +1 \right ) ^{-1}} \left ( \cos \left ( dx+c \right ) +1-\sin \left ( dx+c \right ) \right ) \right ) \sqrt{2}\cos \left ( dx+c \right ) +2\,\sin \left ( dx+c \right ) \sqrt{-2\, \left ( \cos \left ( dx+c \right ) +1 \right ) ^{-1}} \right ) \sqrt{-2\, \left ( \cos \left ( dx+c \right ) +1 \right ) ^{-1}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sec(d*x+c)^(1/2)*(a+a*sec(d*x+c))^(3/2),x)

[Out]

1/4/d*a*(1/cos(d*x+c))^(1/2)*(a*(cos(d*x+c)+1)/cos(d*x+c))^(1/2)*(3*arctan(1/4*2^(1/2)*(-2/(cos(d*x+c)+1))^(1/
2)*(cos(d*x+c)+1+sin(d*x+c)))*2^(1/2)*cos(d*x+c)-3*arctan(1/4*2^(1/2)*(-2/(cos(d*x+c)+1))^(1/2)*(cos(d*x+c)+1-
sin(d*x+c)))*2^(1/2)*cos(d*x+c)+2*sin(d*x+c)*(-2/(cos(d*x+c)+1))^(1/2))*(-2/(cos(d*x+c)+1))^(1/2)/sin(d*x+c)^2
*(cos(d*x+c)^2-1)

________________________________________________________________________________________

Maxima [B]  time = 2.97324, size = 1543, normalized size = 20.57 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)^(1/2)*(a+a*sec(d*x+c))^(3/2),x, algorithm="maxima")

[Out]

1/4*(3*(a*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)
*sin(1/2*d*x + 1/2*c) + 2) - a*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x
 + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + a*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 -
2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - a*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(
1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*cos(2*d*x + 2*c)^2
+ 3*(a*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*si
n(1/2*d*x + 1/2*c) + 2) - a*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x +
1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + a*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*s
qrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - a*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2
*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*sin(2*d*x + 2*c)^2 + 4
*sqrt(2)*a*sin(3/2*d*x + 3/2*c) - 4*sqrt(2)*a*sin(1/2*d*x + 1/2*c) + 2*(2*sqrt(2)*a*sin(3/2*d*x + 3/2*c) - 2*s
qrt(2)*a*sin(1/2*d*x + 1/2*c) + 3*a*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/
2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - 3*a*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*
c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + 3*a*log(2*cos(1/2*d*x + 1/2*c)^2
 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - 3*a*log(2
*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x +
1/2*c) + 2))*cos(2*d*x + 2*c) + 3*a*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/
2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - 3*a*log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*
c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + 3*a*log(2*cos(1/2*d*x + 1/2*c)^2
 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - 3*a*log(2
*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x +
1/2*c) + 2) - 4*(sqrt(2)*a*cos(3/2*d*x + 3/2*c) - sqrt(2)*a*cos(1/2*d*x + 1/2*c))*sin(2*d*x + 2*c))*sqrt(a)/((
cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*d)

________________________________________________________________________________________

Fricas [B]  time = 1.79298, size = 830, normalized size = 11.07 \begin{align*} \left [\frac{3 \,{\left (a \cos \left (d x + c\right ) + a\right )} \sqrt{a} \log \left (\frac{a \cos \left (d x + c\right )^{3} - 7 \, a \cos \left (d x + c\right )^{2} - \frac{4 \,{\left (\cos \left (d x + c\right )^{2} - 2 \, \cos \left (d x + c\right )\right )} \sqrt{a} \sqrt{\frac{a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{\sqrt{\cos \left (d x + c\right )}} + 8 \, a}{\cos \left (d x + c\right )^{3} + \cos \left (d x + c\right )^{2}}\right ) + \frac{4 \, a \sqrt{\frac{a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{\sqrt{\cos \left (d x + c\right )}}}{4 \,{\left (d \cos \left (d x + c\right ) + d\right )}}, \frac{3 \,{\left (a \cos \left (d x + c\right ) + a\right )} \sqrt{-a} \arctan \left (\frac{2 \, \sqrt{-a} \sqrt{\frac{a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt{\cos \left (d x + c\right )} \sin \left (d x + c\right )}{a \cos \left (d x + c\right )^{2} - a \cos \left (d x + c\right ) - 2 \, a}\right ) + \frac{2 \, a \sqrt{\frac{a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{\sqrt{\cos \left (d x + c\right )}}}{2 \,{\left (d \cos \left (d x + c\right ) + d\right )}}\right ] \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)^(1/2)*(a+a*sec(d*x+c))^(3/2),x, algorithm="fricas")

[Out]

[1/4*(3*(a*cos(d*x + c) + a)*sqrt(a)*log((a*cos(d*x + c)^3 - 7*a*cos(d*x + c)^2 - 4*(cos(d*x + c)^2 - 2*cos(d*
x + c))*sqrt(a)*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*sin(d*x + c)/sqrt(cos(d*x + c)) + 8*a)/(cos(d*x + c)^3
 + cos(d*x + c)^2)) + 4*a*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*sin(d*x + c)/sqrt(cos(d*x + c)))/(d*cos(d*x
+ c) + d), 1/2*(3*(a*cos(d*x + c) + a)*sqrt(-a)*arctan(2*sqrt(-a)*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*sqrt
(cos(d*x + c))*sin(d*x + c)/(a*cos(d*x + c)^2 - a*cos(d*x + c) - 2*a)) + 2*a*sqrt((a*cos(d*x + c) + a)/cos(d*x
 + c))*sin(d*x + c)/sqrt(cos(d*x + c)))/(d*cos(d*x + c) + d)]

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)**(1/2)*(a+a*sec(d*x+c))**(3/2),x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (a \sec \left (d x + c\right ) + a\right )}^{\frac{3}{2}} \sqrt{\sec \left (d x + c\right )}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)^(1/2)*(a+a*sec(d*x+c))^(3/2),x, algorithm="giac")

[Out]

integrate((a*sec(d*x + c) + a)^(3/2)*sqrt(sec(d*x + c)), x)